package com.zackeus.sipservice.constant;

import androidx.annotation.StringDef;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 传输类型
 * @name: TransportType
 * @author: zz
 * @date: 2022/9/15
 */
public final class TransportType {

    /* TCP 传输 */
    public static final String TCP = "tcp";
    /* UDP 传输 */
    public static final String UDP = "udp";
    /* TLS 传输 */
    public static final String TLS = "tls";

    @Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
    @Retention(RetentionPolicy.SOURCE)
    @StringDef({TCP, UDP, TLS})
    public @interface Unit {}
}
